package org.ru.mse10.cvis.entity.cv;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.ru.mse10.cvis.entity.misc.Identity;

/**
 * The Class Skill.
 */
@Entity
@Table(name = "skill")
public class Skill extends Identity {

	/** The skill. */
	private String skill;

	/** The comments. */
	private String comments;

	/** The cv data. */
	private CvData cvData;

	/**
	 * Gets the skill.
	 * 
	 * @return the skill
	 */
	public String getSkill() {
		return skill;
	}

	/**
	 * Sets the skill.
	 * 
	 * @param skill
	 *            the new skill
	 */
	public void setSkill(String skill) {
		this.skill = skill;
	}

	/**
	 * Gets the comments.
	 * 
	 * @return the comments
	 */
	public String getComments() {
		return comments;
	}

	/**
	 * Sets the comments.
	 * 
	 * @param comments
	 *            the new comments
	 */
	public void setComments(String comments) {
		this.comments = comments;
	}

	/**
	 * Gets the cv data.
	 * 
	 * @return the cv data
	 */
	@ManyToOne
	public CvData getCvData() {
		return cvData;
	}

	/**
	 * Sets the cv data.
	 * 
	 * @param cvData
	 *            the new cv data
	 */
	public void setCvData(CvData cvData) {
		this.cvData = cvData;
	}

}
